package cn.school.studyManage.entity;

import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_student_behavior_data")
public class StudentBehaviorData implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "学号")
    @TableField(value = "student_id")
    private String studentId;

    @ApiModelProperty(value = "行为标题")
    @TableField(value = "behavior_title")
    private String behaviorTitle;

    @ApiModelProperty(value = "得分")
    @TableField(value = "score")
    private String score;

    @ApiModelProperty(value = "评语")
    @TableField(value = "comment")
    private String comment;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "mark_time")
    private Date markTime;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifyBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    @ApiModelProperty(value = "逻辑删除 0-已删除 1-未删除")
    @TableField(value = "deleted")
    private Integer deleted;
    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
